const mongoose = require('mongoose');//引入mongoose
const classesSchema = new mongoose.Schema({
    name: String,
    tid: {
        type: mongoose.SchemaTypes.ObjectId,
        ref:'teachersModel'
    }
});

const classesModel = mongoose.model("classesModel", classesSchema, "classes");
module.exports = {classesModel}